package com.example.tms.bean;

import com.alibaba.fastjson.JSONObject;

/**
 * 返回信息
 */
public class ReturnInfo {

    private String message;
    private String filename;
    private String filepath;
    private Object list;
    private Object data;
    private String count;
    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public Object getList() {
        return list;
    }

    public void setList(Object list) {
        this.list = list;
    }

    public static ReturnInfo info1(String message){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        return ri;
    }

    public static ReturnInfo info2(Object list){
        ReturnInfo ri = new ReturnInfo();
        ri.list = list;
        return ri;
    }

    public static ReturnInfo info3(String message, String filename, String filepath){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.filename = filename;
        ri.filepath = filepath;
        return ri;
    }

    public static ReturnInfo info4(String message, Object list){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.list = list;
        return ri;
    }

    public static ReturnInfo info5(String count, Object data, Integer code, String msg){
        ReturnInfo ri = new ReturnInfo();
        ri.count = count;
        ri.data = data;
        ri.code = code;
        ri.msg = msg;
        return ri;
    }
    public static ReturnInfo info6(String count, Object list, Integer code, String msg){
        ReturnInfo ri = new ReturnInfo();
        ri.count = count;
        ri.list = list;
        ri.code = code;
        ri.msg = msg;
        return ri;
    }

}
